<template>
  <div>
     <form >
      <input type="text">
      <button @click.prevent>提交</button>
     </form>
     <a @click=fn2() href="http://www.baidu.com" >删除</a>
     <a @click.prevent href="http://www.baidu.com" >删除</a>
     <form  @click=fn()>
      <a href="http://www.baidu.com" @click.prevent.stop>跳转 </a>
     </form>
   </div>
</template>
 
<script>
export default {
  data() {
    return { 

    };
  },
  methods: {
    fn(){
      console.log(111);
    },
    fn2(e){
     e.preventDefault()
    }
  }
};
</script>

<style scoped>
     
</style>